package com.springcloud.common;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name="spring-cloud-eureka", fallback = RemoteImpl.class)
public interface Remote {
    
    @RequestMapping(value = "/client/hello", method = RequestMethod.GET)
    public String hello(@RequestParam(value = "name") String name);
    
}
